

alist =[1,32,451,233,2,12,23,23,8,3]

for i in range(0,len(alist)-1):
    for j in range(0,len(alist)-1-i):
        if alist[j] >alist[j+1]:
            alist[j],alist[j+1]=alist[j+1],alist[j]

print(alist)


classes=[["李斯","赵高","秦二世"],["王五","张三","周⑦"],["哈哈","呵呵","吼吼"]]
i = 1
for c in classes:
    for s in c:
        if s =="张三":
            print("张三存在于第{}班".format(i))
    i+=1